import request from '@/utils/request'

export function getWhitelist(data) {
  return request({
    url: 'whitelist/page',
    method: 'post',
    data
  })
}

export function getWhitelistDetail(data) {
  return request({
    url: '/whitelist/' + data,
    method: 'get'
  })
}

export function addWhitelist(data) {
  return request({
    url: '/whitelist/add',
    method: 'post',
    data
  })
}

export function editWhitelist(data) {
  return request({
    url: '/whitelist/update',
    method: 'post',
    data
  })
}

export function deleteWhitelist(data) {
  return request({
    url: '/whitelist/delete/' + data,
    method: 'post'
  })
}
